import request, { uploadFile } from '@/api/request'

export default {
	
	//获取应用基础信息
	getBaseInfo: data => {
		return request({
			data,
			method: 'get',
			url: '/platform/base'
		})
	},
	//获取隐私政策
	getPrivacy: data => {
		return request({
			data,
			method: 'get',
			url: '/platform/privacy'
		})
	},
	//获取用户协议
	getAgreement: data => {
		return request({
			data,
			method: 'get',
			url: '/platform/agreement'
		})
	},

	//获取notice
	getBroadcast: data => {
		return request({
			data,
			url: '/broadcast/list'
		})
	},

	//首页轮播广告
	getAddList: data => {
		return request({
			data,
			url: '/advert/list'
		})
	},

	//热门搜索
	getHotKeywords: data => {
		return request({
			data,
			url: '/platform/hotkeyword'
		})
	},

	//获取地址
	getAddress: data => {
		return request({
			data,
			url: '/platform/getregions'
		})
	},

	//track埋点
	track: data => {
		return request({
			data,
			url: '/member/customerService'
		})
	},
	
	//上传文件
	uploadFile: params => {
		return uploadFile(params)
	},

	
}
